import { superviseInfoAPI } from "@api/superviseInfo";

export default {
    getUserInfo({ commit }) {
        superviseInfoAPI.getMiddlegroundUserInfo().then(res => {
            commit('setMiddlegroundInfo', res)
            const params = {
                id: res.userBasicVo.id,
                tenantCode: res.userBasicVo.tenantCode
            }
            superviseInfoAPI.getCurrentSysInfo(params).then(res => {
                commit('setCurrentSysInfo', res.data)
            })
        })
    }
}
